package com.bwie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bwie.pojo.Brand;
import com.bwie.pojo.CategoryBrand;
import com.bwie.utils.PageResult;
import com.bwie.utils.R;

import java.util.List;

/**
 * @author 段阳
 * @version 1.0
 * Create by 2024/4/23 20:05
 */
public interface BrandService extends IService<Brand> {
    PageResult pageList(Long page, Long rows, String key, String sortBy, Boolean desc);

    R addNewBrand(Brand brand, List<Long> cids);

    List<CategoryBrand> selectType(Long id);

    R UPBrand(Brand brand, List<Long> cids);

    R delBrand(Long id);

    R getBrandInfo(Long bid);

    Brand queryBrandNameByBrandId(Long id);
}